#ifndef WORLD_H
#define WORLD_H

#include <string>
#include <vector>

struct Block_t {
    long x, y, z;
    long id;
};
struct Chunk_t {
    long x, z;
    std::vector<Block_t> blocks;
};

class World
{
	public:
	
		World(std::string name);
		~World();
		
		void addChunk(const Chunk_t &c);
		void addBlock(int x, int z, const Block_t &b);
		Block_t &getChunk(int x, int z);
		
		void saveAll();
		void clean();
		
	private:
		
		std::string name;
		std::vector<Chunk_t> chunks;
	
};

#endif
